import request from '@/utils/request'

// 查询地铁周边地点列表
export function listSubwayLocation(query) {
  return request({
    url: '/find/SubwayLocation/list',
    method: 'get',
    params: query
  })
}

// 查询地铁周边地点详细
export function getSubwayLocation(locationId) {
  return request({
    url: '/find/SubwayLocation/' + locationId,
    method: 'get'
  })
}

// 新增地铁周边地点
export function addSubwayLocation(data) {
  return request({
    url: '/find/SubwayLocation',
    method: 'post',
    data: data
  })
}

// 修改地铁周边地点
export function updateSubwayLocation(data) {
  return request({
    url: '/find/SubwayLocation',
    method: 'put',
    data: data
  })
}

// 删除地铁周边地点
export function delSubwayLocation(locationId) {
  return request({
    url: '/find/SubwayLocation/' + locationId,
    method: 'delete'
  })
}
